Rework setUpLayout to refresh document list