mainpage class