added pinch and zoom capability