update hide modal initially