initElements moved to consctructor