focus on window controlling. logout reset window