added router and controller