CON-1809 | Fix overlapping of anchored element

If you go with AMD approach consider moving this code and all below to controller