delete view using ajax