select and delete functionality added