func addOneJob(jobstore entities.JobStore) int {
	id := jobstore.AssignFreeId()
	c := make(<-chan entities.StatusMsg)
	job := entities.CreateJob(id, c)
	jobstore.AddJob(job)
	return id
}
func editJob(jobstore entities.JobStore, id int) {
	job, _ := jobstore.GetJob(id)
	job.Status = "Done"
	jobstore.Replace(id, job)
}