completed part of UI