Added a new function for generating the title tag