Added alert for clear function