adds current_page condition