Update class hide() function