commit with change to UI to red on click evernt using javascript