stop proxy when close window
update size of buttons