Added functionality to update state changes