implementing tab clicks

started implementing tab clicks