stop auto mode on modal open