move create events function selection into getModality