working "success" and "cancelled" messages