refactoring in adminProfile and adminWorkPage