removing duplication in dashboard helper