Added filtering by event type

Performance improvements by not repeatedly triggering redraws.