fixed edit hooks with panels (were called twice)