Add new task; Handle click event to generated element