# Menu and back buttons managing

**URL:** <https://forum.ionicframework.com/t/menu-and-back-buttons-managing/91999>\
**Category:** ionic-v1\
**Created:** [May 27, 2017, 10:33pm UTC](https://forum.ionicframework.com/t/menu-and-back-buttons-managing/91999 "2017-05-27T22:33:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![antonioaltamura](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@antonioaltamura](https://forum.ionicframework.com/u/antonioaltamura)\
**Post date:** [May 27, 2017, 10:33pm UTC](https://forum.ionicframework.com/t/menu-and-back-buttons-managing/91999/1 "2017-05-27T22:33:55Z")

</div>

Hi, here currently my template. The app is based on sidemenu template.

menu.html

```auto
<ion-side-menus enable-menu-with-back-views="true" ng-controller="menuCtrl">
  <ion-side-menu-content>
    <ion-nav-bar class="" ng-class="{expanded: isExpanded, 'has-header-fab-left': hasHeaderFabLeft, 'has-header-fab-right': hasHeaderFabRight}" align-title="left">
      <ion-nav-back-button class="no-text"> </ion-nav-back-button>
      <ion-nav-buttons side="left">
        <button class="button button-icon button-clear ion-navicon" menu-toggle="left"></button>
      </ion-nav-buttons>
    </ion-nav-bar>
    <ion-nav-view name="fabContent"></ion-nav-view>
    <ion-nav-view name="menuContent" ng-class="{expanded: isExpanded}" ></ion-nav-view>
  </ion-side-menu-content>

  <ion-side-menu side="left" class="menu">
   ...
  </ion-side-menu>
</ion-side-menus>

```

I see the back-button has a wierd behaviour. For example: if from my home page I visit a page though the sidemenu items, I see just the menu (hamburger) button on the header of the next page, IF I visit the same page using a button in the home page I see the back-button.  
Sometimes they even shows both.

How can I control manually the buttons visibility and behaviour?
