added gui functionality like swipe and zoom