fixing modal save