UI arrange the code