html bug fix and styled the error pages