Debug view refactoring - Events and Logs(only part)