refactor servlet classes
fix event api
add setActive(false)