navigation logic in navigation panel