fixed bugs, added features like pinch zooming