added delete functionality to done button