add attend functionality