Improvements to record
Use ajax instead of iframes