Added title function for overriding window title.