add event handler to fire ajax call