A function to create custom title