Correctly handle target text selection in query.
Display improvements for small devices: move search box to top, limit pagination bar.
Fix pagination: upper bound off by 1.