fix ordering of variables being set so apptheme settings will display