update minor mode