Commit change to the main activity