Modified tabs to be more accurate in functionality by abstracting the usual behavior of tabs into a function to be called by both focus and click