added warning icon
add type we can show the right edit window