adding some navbar related logic