bug fixed:  location should be in callback of remove

$location should be in callback of $remove, so that the refreshed page would be using the new (with something deleted) data.