added swiping for navigation