Complete the mainly part of UI