moved viewtype (de)activation into dialog for better access