Adding slider and moving constants to yaml file