Revert "set the initial state of warning div as hidden"

This reverts commit 1a28e328aca2ad135cfc2ccee86db1e04951d5f9.