Moved every UI element to templates