implemented enum pattern for page resolution (closes #8)