added the condition 'dismissible' in array mensege