commit local changes in store and controller