calculate page title