Redirect to wiki page when edit page, and fixed a few bugs