Commit before form color change