Add sort button for themes

- Fix rotate crash with UICollectionView header space defined but no header — made search bar the header

- Prevent stacking popovers on iPad

- Resize search bar properly, disregarding initial nib width.