add error/success page