render page elements only if page was requested