title change feature

Added function to track missed chat messages and updates title with
count. Also included two functions to check if window is focused or not