added a better way to switch between splits