corrected center alignment for main content window

along with a few polish-up coding.