added now to fix loader not being inited before first ajax calls are made