add swipe ability in main view