implemented Delete function

reworked Modify function