Added functionality to center the title text