Resize main window
Show preferences on first start