improved dismiss button