done task, move create subscription and rule with template in subscribe to beforeSave function, add JS fixes