Create controller.java

fixed delete method