Fixes issue #30

No need to call the callback on hide as it is called later on in the function when the state is set