clean up dashboard and code