initial work on ajax-enabled form saving - currently broken