update flash messages
add update method in cart controller