add logging
midified some 'addLog' bugs and edit action