Refactor commit tooltip dialog