remove redundant code in dashboard view