added view document applicationeventlistener