replaces events hash with actions hash