use the right selectors to toggle UI on state change