improved ignoreClick() and added to dialogues

in order to prevent codegenerator to go wild