Fix auto scrolling and simplify node append implementation