fixed bug that casued multiple save buttons to spawn when using edit more than once