I took a look at your project and noticed that you are using the selectedFriendRow as your Row ID. On the first page you set Add(null)Update(row id) as your row id. To update values in your sheet use that variable as the row id.
Try This