Fixed backstack operation so it will reliably go back to the list of devices