added public method updateState
Changed default max to 5 stars (index 4)