ui changes and fixed bad hex math