edit ui,logic and add ssm_batch.rb