Call updateTitle in appropriate places