switching alert box on preview a Badge page