Added functions to update window title