fixed directive error
created a controller per route