refactor : shift appending of time interval row to doPost() function