Modified buttons and checkboxes to work even when the window's resized