modified counter, included uiHandler