defined sync function in attendee controller
removed doattend controller because it was unecessary