improve resize/move popup