Adding edit and update action