Refactoring of code to store current page and category ids. Navigation highlighting added for header menu.