Listener to add state name as a classname to body