mainpage setup