set up edit view