copy the code from dashboard src/main/java
modified app.java
modified some files