Fix event api
Refactoring log view