some fixes for layer upload panel