upate modal editable so that i stores and updates data