adding edit title functionality