moves index file to root