add product buy and delete processing logic