Add main page and edit in detail page