fix a bug. When editing the task, now is not possible to save a task withiout a name
changed the position of the buttons in task preferences dialog