changes state handling in stores