accept invitation added. has some issues to be fixed