change hide/show bars behavior