Added register stuff all the way to the gui