fixed bugs and change how resizing works