Added callback for show/hide