indentation
refactoring and added possibility to apply custom Control instances for Resource look up