added flash message for product and category controllers