Trying ajax calll instead of post