Main window: When clicking on a document, show its pages (still buggy)

Signed-off-by: Jerome Flesch <jflesch@gmail.com>