move controller and directives into their own files