swapped template location with main files

Made some changes to index
made some changes to index