Finally got window interface working