update_hook passes svg selection as argument