version add delete button back in view and conditinional needs to be added