refactoring of code : moved the page functions all to page presenter