Updated carts controller with error handling on show