Double nested view elements bug by moving DOM elements