finishing main page