Preventing default functionality on clicking tabs