integrated status bar in scan part, some refactoring