fixed delete and edit permissions