mainpage controller done