added success error pages