WebUI Core Redesign

WebUI code modifications related to #1697 (Step 1 and Step 2).