update dismiss method