moved loader code
deleting old code
renamed elements
fixed obstructed pointer event
better layout selection