Remove unused requires in loading panel.
Fix minor issue with element references.