fixed replication, added delete button