updated code for navbar