refactoring of profile views