Set the selected element of the menu