Use Java 8 lambda notation for adding handlers