generalized new resource input panel into inputpanel
generalized new resource input panel into inputpanel