moved ui initialization to html file so it wouldn't be executed during tests