Update main.php

Needs tidying