Abstract smarty to own Page class
move display_page to Page class