Fix some minor bugs when creating tasks and viewing jobs.
Support adding tasks by a sortable table.