add commit dialgo and set in preferences