FINALLY got this working - tabs now work properly