modify the selected method can show the selected