adding controller functions, new pages rendering