determine content to render based on page name
use page specified in route object to determine class to load