fix for changing layout