Fixes javascript and styling problems in the replace layer view.