fixing ajax call for remove