fixing dashboard controller

Latest pull request causes errors commented out the code for now