Setup hide-show mode