Instead of checking the cursor position at the time of the paste, it
needed to be checked at the time of the context menu creation to ensure
the segment gets pasted into the correct section
If cursor is above else action section paste it there.
If cursor is above regular action section paste it there.
In case of neither paste in original position.