renew _edit with jquery and repair jail_type