added navigation functionality