added swipe and arrow navigation