fix logic on tabs in profile