Added missing use statement
Avoid resource opening in picker mode
Refactored resource picker input