Ported Loading Page logic.
Ported MainHub page logic.