fixes #118. Please have a look at the Readme.md for the different behaviour of the back button when dialogs are opened from dialogs