refactor events-proto views