Done with swipe code for first view but not working