Added AJAX error handling, UI behavior
Added disconnect handling, fixed method selection