to be continue with MyAttendance.js and finish askForLeave function