Adapt accept action to attend ajax call