some changes to edit and show views