Added support for data-state based state transitions with special support for show and hide states.