Fixed UI loading issue - UI loading twice

An issue where the UI would load twice