Kritika- Created separate controllers for different views--task done..also moved the diectives to a separate dedicated file-'mydirective.js'