code refactoring.. used thymleaf for profile views