added bind to visible event function to callback when visibility changes within tabs