Add support for hiding fragments