Fixing back button and data loading logic.