fixed some bugs with the css nav