edit view and unit test