controller class added
view moved from java version