How can I repeat a page if it's necessary