Window now resizes to fit content