Gon passing timestamps to controller. Create loop and format todo