set the initial state of warning div as hidden