According to an old rule about “dangling modifiers,” these sentences are ungrammatical. (Sometimes the rule is stated as applying to “dangling participles,” namely the gerund form of a verb ending with –ing or the passive form typically ending in –ed or –en, but the examples include infinitival modifiers as well.) The rule decrees that the implied subject of the modifier (the one doing the checking, turning, and so on) must be identical to the overt subject of the main clause (it, the view, and so on).