Added delete selected functionality