Fixing UI construction bug. Elements where created and added more than once.