added an edit page and added items to the controller