Write mainpage view