Partly migration to EJB, implemented some new commands and pages