reverted back to main.index, fixed loading issue