more file splitting

should make it easier to add all the new gui stuff it its in a separate
file