removed some print statements. fixing a bug for loading the webpage with wrong header