edit delete and edit fucntion to the script