Added setDisplayMode function to define zoom, layout, and page modes