added layout =0 to fix issue with nested views