added "switchTab" function in RecipeBookActivity