cmdwin behavior