Made GUI resource code usable (compiles but untested, testing next)