simplified isResourcePath
misc clean up in panel