adds server data to DOM on pageload