added check and alert for pending friend request