First working version of the dynamic TabBar