Rearranging template and getpage