support dynamically adding and removing title
also add in the gallery a function to test it BUG:396417