created a start timer functionality