fixed some glitchiness, resizing is working