Made the navbar work better