add edit and update action