Very simple and minimalist script for implemeting switching between tabs