cleaned up ui elements, fixed error reporting