debugging harmless errors and defining UI