Included an expansion function/window resize mechanic