Add Task button freezes the browser