Refactoring, Setting formdata (i.e.start/end time)