[UI/Ajax] Add global variables where needed.