loop back in page template