Remove delete ajax call and modify to work normally