redo accidentally removed commmit click handler