changed the PyQt4 signals-slots method to PyQt5 signals-slots method