Move index to main