moved index to public folder