add jquery to allow the changing of a tasks state