make ui work with resources