perfected ajax create for add task