changed save method to ajax, added form checks and prepared multi save methods