add flags for controlling swipe
renaming show/hide ->  open/close