new api to show/hide