move code for selecting scheme to a new fragment