syncs with server on page load