Menu and back buttons managing

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


<ion-side-menus enable-menu-with-back-views="true" ng-controller="menuCtrl">
    <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-view name="fabContent"></ion-nav-view>
    <ion-nav-view name="menuContent" ng-class="{expanded: isExpanded}" ></ion-nav-view>

  <ion-side-menu side="left" class="menu">

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?