creating data listner