add effect callbacks to hide/show