before enabling panel