solve issue where friends tab is not working properly