added confirm for delete task and not allowing the add the same task twice