Make router's method more natural.
Fix the return value bug that makes the website displays the error page twice.