create table for repository mode, update controller
replace rickshaw with morris.js