prepend checking and setting root page as @current_page