add delete cart function and buy item function