Add delete functionality to widget