added callback for custom title bar