save button works with mock server