-updated actionEvent to newest language level
-added correct errorMessages