updated clear button mode