fixed edit and add pages which were not submitting.