Condition template
fixed conflict in service.js