reordered method definitions - event handlers before helpers