Adding refresh when windows is resize