moved controller configuration out of view and into config.js