make nav bar functional and redirect edit to categories index