dont give option to generate diagram if popup