separate ui script