Cleanup the edit view