Make mainpage work