add logic to profile panel view