changes \n to <br>, fix bug