styling and determining page