adding title element text listener