Added functionality with refresh for the attend/unattend button