Added search bar and corrected the layout changes when the device rotates