Add event handlers for arrows