prepare main page