minor change to profile sub templates
fixed profile delegates bug