now resizing and moving working