Updated browse handler to fix \n in heading issues