added arrow, overlay function, mouse events