Solved the bad behaviour of the back button.