add type we can show the right edit window