Impleented navigation bar functionality