changes to default controller
added roles and routes data point to global js