adding windows resize support