Both functions are working but the "tabbed version is buggy"