Replacement of LinePopupNum variable with the LinePopupNum array
Reformatting
Undoing "Only update the status panels if the the cursor move"