refactoring: common devices events
fix popups not working with java 8