handle menus and relative paths for navigation