Add a method to provide title on page change