title: Backstack not showing the result wanted
body: <p>I have 3 fragments namely frag1, frag2, frag3.</p>
  
  <p>The first fragment has two buttons. The first button click places frag2 on the screen and the click on second button places frag3 on the screen. </p>
  
  <p>The work flow the first button should follow is</p>
  
  <p>frag1 -> frag2</p>
  
  <p>frag2 -> frag3</p>
  
  <p>When back button is pressed:  frag3 -> frag1</p>
  
  <p>The work flow the second button should follow is</p>
  
  <p>frag1-> frag3</p>
  
  <p>When the back button is pressed: frag3 -> frag1</p>
  
  <p>The work flow is fine but when I perform the first button operation (i.e frag1->frag2->frag3->frag1) and then the second button operation the fragment frag1 is replaced by frag3 but when I press the back button I still get frag3 on the screen and then pressing the back button again the application closes.</p>
  
  <p>Can anyone please help me on what wrong approach I am taking to this problem and please give the solution to it. It would be greatly appreciated.</p>