Fixed eventslist view with no events. (Issue #64)
Refactored duplicate code
Also some bugfixes.