adding functions for navigation