fixing ajax call for accept