implemented rotate and zoom gesture