AD: approve attendance functional added