added protection to edit & details
Merge pull request #223 from Useful-Innovation/johans-fixes

added protection to edit & details