Add some function.
Add error page, fix some bug.