added public profile functionality