Modified the select layers dialog