cleanup stateChanged() in View