fix notes-ui for pyqt5
Misc fixing