Copied mainpage code into index