front end UI scripting almost done