clearing tray on deleting objects