don't remember what I did here :P work in progress for resizing components