added a state declaration to the model to accept and delete friendships