HTML elements not moving when popup occurs