tryting to fix non-responsive state update