Fix routing between pages, pass required fields to new and edit pages.