refactoring the controllers
add ad choose type demo template