added rescan ports button, bugfixes