implemented update action