Adding mainpage and error page