fixed bug with window enlarging rapidly

also, moved resize icon to bottom right corner of window