Update state on minimized and call next