Added main page generation