modify socket_controller exports.
use common _form.ejs partial for new and edit.