add delete function and button