fixes for checking if current page is index