moving and resizing works, but poorly