geting index and homepage ready