modify page title logic