Redraw buttons when window resize