add events to ajax