Add functionality to add a friend to array by button press.