Hide time buttons and others when the mouse goes to the header
factorization of code