Minor cody tidy up (white space, added var, redeclaration of PanelAdvanced).