almost working dashboard, needs to be integrated into main program