added event for newline