done a simple mainpage and mainpage handler