format title bar