Modified the previous GUI