Added try clause to layout_change. 2