shouldn't be using ajax for this