fixed the connections between pages

There may need to seperate one more controller just to load the pages
without data handling.