fixed ability to create attendance record on button click