Some formating
Modified file rights
Fix trigger event