solved selection handling bug when removing elements from views