finally got edit friends activity to work properly