Remove hidden class when not needed