Moved index to public folders

this is more secure since there is no access to source files