Inside my bot.js

```
    this.onMessage(async (context, next) => {
        console.log("Running dialog with Message Activity.");
            let adaptiveCard = new AdaptiveCards.AdaptiveCard();
            adaptiveCard.parse(welcomeCard);
            let finalCard = CardFactory.adaptiveCard(adaptiveCard);
            let outputCard = MessageFactory.attachment(finalCard);
            await context.sendActivity(outputCard);
        // By calling next() you ensure that the next BotHandler is run.
        await next();
    });

```

I am rendering an adaptive card on this.onMessage. On click of one of the items of the adaptive card, a dialog is initiated which accepts some text prompt input from the user.

Now, whenever the user provides his input the this.onMessage is called and this adaptive card is rendered. Is there a way by which i can stop rendering this adaptive card while my dialog has not been ended ? I want this to run adaptive card to be rendered everytime except when there is a dialog running.

I tried looking at lot of documentation, but couldn't find any help there.