add delete and selct event handling