fixes page categories for users
fixes 58
refactoring