remove few ui related stuffs into panel.js and change API in wifi_context