added a new friend button and encoding/decoding