Add auto dismiss option.