color calibration + field border detection

+ dialog refactored