moved some drawDevice functionality to a new drawWindow class