working functionality in navigation