Perform callback inside of hide function