added swipe functionality. and swipe nav through pages