changed edit and update flows