Changing layout programmatically

Changing layout programmatically