genreate ability to edit routine with delete and add