Adding title functionality