implement basic window translation