fixing pages according to index.html structure