layout object set as null by default