changed from pyqt to pyside; verify length of card ID; UI improvements