Update UIFrame.java

Added more logging and correct solution showing.