added UI window and mode switcher (just html)