refactor plugin part for better management of controls places