Added code to the main class to allow the AddFriendToActivity window to
be opened correctely