updated navbar to handle initing better