Added method to disable and enable pan gesture on the top view.