Added basic function to (almost) switch divs

Added above function