add log model
jshint code
Merged with appForms