made navigation bar working