Component state update

When component calls setState, its css class is updated to reflect actual component state.