Hide the permalink-div when viewer is destroyed or hidden