implement title functionality