# Is there any possibility to enable/disable the Miniprofiler button in UI without stopping the Miniprofiler

**URL:** <https://community.miniprofiler.com/t/is-there-any-possibility-to-enable-disable-the-miniprofiler-button-in-ui-without-stopping-the-miniprofiler/369>\
**Category:** .NET\
**Created:** [March 18, 2015, 8:29am UTC](https://community.miniprofiler.com/t/is-there-any-possibility-to-enable-disable-the-miniprofiler-button-in-ui-without-stopping-the-miniprofiler/369 "2015-03-18T08:29:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mragunath](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@mragunath](https://community.miniprofiler.com/u/mragunath)\
**Post date:** [March 18, 2015, 8:29am UTC](https://community.miniprofiler.com/t/is-there-any-possibility-to-enable-disable-the-miniprofiler-button-in-ui-without-stopping-the-miniprofiler/369/1 "2015-03-18T08:29:19Z")

</div>

I have used showControls:true, startHidden:true, but it doubles up the [m | c] button on each pofiler result.

Therefore I introduced a (show/hide)button in the View page and on-click event I tried to set the ‘profile-results’ div visibility false(display:none) but the future ajax view profiler results are visible but I expect only when I click the (enable/disable) button it should be made visible.

Note: Since I am a new user I am not able to upload the screen shot here.  
However my focus would to enable/disable at client side.  
Assumption the MiniProfiler.Settings.Results\_Authorize will bet set to true always.

Please advise, if I am missing that is already available in Miniprofiler or how to achieve this scenario.

Advance in thanks.

---

<div class="post-metadata">

**Author:** ![mragunath](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@mragunath](https://community.miniprofiler.com/u/mragunath)\
**Post date:** [March 20, 2015, 12:07am UTC](https://community.miniprofiler.com/t/is-there-any-possibility-to-enable-disable-the-miniprofiler-button-in-ui-without-stopping-the-miniprofiler/369/2 "2015-03-20T00:07:17Z")

</div>

I have found the root cause as I was calling RendIncludes at Master page as well as child content pages. Now removing at Child page solved the problem.
