dashboard functions update and cleanup