adding tasks using ajax