Add methods for forms and redirects for client js.