update hide method