fixing add delete list function