creates ajax request when remove is clicked