Add event handlers directly to the lement instead of document