handle displaying user state on page load