dashboard clean up code