Fixed the main page, and page repetition