first part of assignment edit client side