Add conditional dismissable class