get state name

got state name. unfortunately, no idea now how to prevent from storing
state name in LS on every state change