adjust the UI and remove width&height control in the js