Add reload on page resize, fixed error

+reload page on window resize
+container div wasn't closed