hide hr when not needed