added delete function, added modal windows