pass in hider function