updated item checking and autoset quantity when 0