connecting action button to zoom and pan functions