fix compile errors in UI