Fixing a bug with not returning to the correct page when leaving the view and coming back to it (for example in a navigationcontroller, changing to a different view then coming back to this one again)