fixing logic issue on show/friend pages