Optimized search and "saved state" on rotating the screen