added new files(controller and js)