added listner for aplication run