added typedef enum to determine the layout of the page