added ui tables
fixed bug with deleting unselected row