modified the script file
version 2 with a lot of improvements in the UI