fix hide function to set opacity to 0, not 1