extract controllers from 'app.js' to dedicated files