added new main page and wrote tests