Added syncing upon page load and server states