adding ajax functionality to delete tasks