event handler factory
svg container as parameter