adding the changing display state