fix most spurious newlines
add window control to mouseevent