improve double tap to zoom
code clean up