fix LogPanel size issue and cleap up constructor