Main window: When opening a document, display the document first, then only predict labels

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