basic example of how to handle span state and show on UI