updates title bar