clean up code on dashboard