Delegate date to edit.js for saving.
remove unneeded lib.
Set date also to ui.