hopefully sort out back button states. Argh.