fixed some issues with resizing and links