finish layout of mainpage