Add error and success page without controller