I want to add a function in the form to record and log time automatically