add Html drag and drop for layers
move code in right place