reorganized HTML elements to smooth out shifting