changr scaner mode depends on spinner