worked on nav functionality