(fix) minor changes to resizing and got rid of uneeded console.log