write codes to show UI