design homepage and errorpage