Zoom function is not working proper