adding instance variable to delete action