fixed bug on active navbar item when adding a page to a category