adds custom title functionality