fixed edit and delete buttons