Move createTabPanel from draw.js to ui.js