added controllers and js files