Cleaned up pref page, added callback from http call to notify main UI thread of result of operation.