Changed way to select title name of the page