rewrite title bar