refactor duplication in dashboard
refactor menu options