added title functionality