Add the functionality to switch the layouts after 7 points