use pointer for show/hide