detect master pages too

Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
set the number of columns to be wider if in gui mode

Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>