script of using select for user interface