Moved some functionality to constructor for preventing warnings (getString("") called before component was added to the parent component).
Warnings of components fixed.