updated 'edit title' functionality