added mode switching and data dump dialog