refactor add dashboard