improve product module and fixed some errors
error handler