Cleaning code in plugins preferences panel