VE-471: tweak pages panel styles so that it takes up entire remaining space.
VE-471: fix searching; move some logic around.