modified setStatus to include the newLine