added simple select and delete functionality