Logic for the profile view and documentation