enforce appbar state on page load