fixed loading of pages without refreshing page