resetting the layouts with less coding