use $page_name instead of ->{page}