fix set template bug
fix edit box bug when user switch page and go to 404 page.