Got rid of redundant window resizing function calls, moved menu code above button code, made button icons scale with size of buttons, made buttons' width scale with size of window.