More UI stuff (added Panel), fix for Mac texture corruption