added base controller to manage edit and new and added link to edit form