end main page