fix table append problem and add spinner for quantity