add error pages and update styles