added start and pause functionality