main page and edit page