fixed add and edit client