fixed window focus status and added it to tutorial