function LoadDataButtonPushed(app, event)
            SJBS= 'SolarJobsbyState.csv';
            app.JBS = readtable(SJBS);
            app.year= app.JBS{52, 2:7};
            app.stateDropDownLabel.Visible = 'on';
            app.stateDropDown.Visible = 'on';
            app.YearsSliderLabel.Visible = 'on';
            app.YearsSlider.Visible = 'on';
            app.YearsSlider.Limits = [min(app.year), max(app.year)];
            app.YearsSlider.Value = [min(app.year), max(app.year)];
            app.YearsSlider.MajorTicks = app.year;
            app.LoadDataButton.Visible ='off';
         
           
    
 
            
            
           
        
       
        end
        % Value changed function: stateDropDown
        function stateDropDownValueChanged(app, event)
            State = app.stateDropDown.Value;
            
            switch State
            
                case 'Alabama'
                    hold(app.UIAxes, "off")
                    plot(app.UIAxes,app.year,app.JBS{1,2:7},'ob')
                    %ployfit- provies coefficients for the regression
                    %equation
                    plot(app.UIAxes,app.year,app.JBS{1,2:7},'-o')
                    ALAcoef= polyfit(app.year,app.JBS{1,2:7},1);
                    % IPDcoef= [m,b]
                    m= ALAcoef(1);
                    b= ALAcoef(2);
                    %function handle
                    ALAFUNC= @(x) m*x+b;
                    %regression equation
                    hold(app.UIAxes,"on")
                    fplot(app.UIAxes,ALAFUNC,[min(app.year),max(app.year)],'-r')
                   
       function YearsSliderValueChanged(app, event)
            selectedyr = app.YearsSlider.Value;
           
           
        end
            
%i want to be able to change the range of app.year using the range slider but everything i have tried doing work, please set me on the right path