switch to a more wordpress-like style of ajax and all that. this should make previews work