use commit from before refactoring and replace segment control with slider