Incorporated title change code into graph widget class.