centre fileDialog, comment and tidy