Make sure state is retained on orientation changes.