replces the way for render the places in the index html