Mainwinfix

fix improper qlayout and new IPython way for console