Added functions

Update, Edit and Delete functions. Modified the code for MouseClick