add energy plot to connect viewer

also fix some parentage of gui windows
Merge branch 'master' of github.com:js850/PyGMIN