set deadline & set template