added event for title change