Trying to put setLayout in destructor