updated layer dialog
fixed tests