add product bean and delete unuseless code