fixed edit and delete apartments