working but need to refactor the way case edit form populates