bug fix add index

now a task can be added from GUI