added a bunch of gate ui stuff