added "accept invitation" feature