-fixed the controller to be able to add data through ajax
-modify the view to send the data (memo and date) to controller using ajax
//remove manual insert memo within generate function of mycal_model