Fix some problems in manage.html and manage.js.