Organized createCentralWidget code for clarity