improved rendering for navmenu component