Add method to generate page's title