Improve quantity change event