Improve positionWindow, keep title centered on form size change

More work on moving form settings into edit box