Add refresh_page code