re-implemented ajax for registering new spot