support for bar hide/unhide