Moving removal of loader into callback of load main page.