fix file field clearing, add record button (where supported), use AJAX for submit when available