Fixed added 'current' class for current page and adding class for link if this page is subpage