Updated functions and send_email for timesheets