implemented set active script
tidied up ui
tidied up ui
tidied up ui