Added regression analysis into gui, but regression has bugs in it