Implemented drag and drop of layouts