cleaned up some graphics stuff and added button handlers for unit building