refac: applyDependencyVisibility
refac: input style
use a dom id to build a selector