Extract valueInputs() and addModeLinks()