move to namespace.  use event delegation.