remove udpate button and putting the udpate on window resize