Copied UI elements from Roberts originals.
Updated naming and copied in most of Roberts original code.