add edit for SR and fix ng init